package com.behome.netty.netty_D.enums;


public enum EbmClass {
    HOLD_BACK((byte)0, "保留"),
    SYS_DRILL((byte)1, "发布系统演练"),
    SIMULATE_DRILL((byte)2, "模拟演练"),
    ACTUAL_DRILL((byte)3, "实际演练"),
    EMERGENCY_BROADCAST((byte)4, "应急广播"),
    DAILY_BROADCAST((byte)5, "日常广播"),
    URGENT_BROADCAST((byte)6, "紧急广播"),
    TIMING_BROADCAST((byte)7, "定时广播");

    byte value;
    String name;

    public byte getValue() {
        return this.value;
    }

    public String getName() {
        return this.name;
    }

    private EbmClass(byte value, String name) {
        this.value = value;
        this.name = name;
    }

    public static EbmClass getEnumByValue(byte value) {
        EbmClass[] var1 = values();
        for (EbmClass type : var1) {
            if (type.value == value) {
                return type;
            }
        }
        return HOLD_BACK;
    }
}